<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Whisper: samples_preprocessor.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Whisper
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<div class="title">samples_preprocessor.h</div>  </div>
</div>
<div class="contents">
<a href="samples__preprocessor_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef __SAMPLES_PREPROCESSOR_H__</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define __SAMPLES_PREPROCESSOR_H__ 1</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &lt;stdint.h&gt;</span>
<a name="l00005"></a>00005 <span class="preprocessor">#include &lt;pthread.h&gt;</span>
<a name="l00006"></a>00006 
<a name="l00007"></a>00007 <span class="preprocessor">#include &quot;<a class="code" href="engine__factory_8h.html">engine_factory.h</a>&quot;</span>
<a name="l00008"></a>00008 <span class="preprocessor">#include &quot;<a class="code" href="audio__formats_8h.html">audio_formats.h</a>&quot;</span>
<a name="l00009"></a>00009 <span class="preprocessor">#include &quot;<a class="code" href="codec_8h.html">codec.h</a>&quot;</span>
<a name="l00010"></a>00010 <span class="preprocessor">#include &quot;<a class="code" href="byte__ring__buffer_8h.html">byte_ring_buffer.h</a>&quot;</span>
<a name="l00011"></a>00011 <span class="preprocessor">#include &quot;<a class="code" href="properties__reader_8h.html">properties_reader.h</a>&quot;</span>
<a name="l00012"></a>00012 <span class="preprocessor">#include &quot;<a class="code" href="wave__io_8h.html">wave/wave_io.h</a>&quot;</span>
<a name="l00013"></a>00013 
<a name="l00014"></a><a class="code" href="samples__preprocessor_8h.html#a2b547b15963e338fa6757536a1906b39">00014</a> <span class="preprocessor">#define MAX_SEND_INFO_COUNT 10000</span>
<a name="l00015"></a>00015 <span class="preprocessor"></span>
<a name="l00016"></a><a class="code" href="classCSamplesPreprocessor.html">00016</a> <span class="keyword">class </span><a class="code" href="classCSamplesPreprocessor.html">CSamplesPreprocessor</a>
<a name="l00017"></a>00017 {
<a name="l00018"></a>00018         <span class="keyword">public</span>:
<a name="l00019"></a>00019                 <a class="code" href="classCSamplesPreprocessor.html#aa968e1c0fc57528eaf3494dfb48a221f">CSamplesPreprocessor</a>(<a class="code" href="structNAudioFormats_1_1SStreamInfo.html">NAudioFormats::SStreamInfo</a> pIoStreamInfo,
<a name="l00020"></a>00020                                 <a class="code" href="classCStegCallHandle.html" title="simple handle class that carries all the various engines and helper classes">CStegCallHandle</a>* pCallHandle,
<a name="l00021"></a>00021                                 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pByteBufferSize,
<a name="l00022"></a>00022                                 <a class="code" href="properties__reader_8h.html#a67847fd00cb49d80dd45f61722eb9a43">CPropertiesReader</a>* pReader);
<a name="l00023"></a>00023                 <span class="keyword">virtual</span> <a class="code" href="classCSamplesPreprocessor.html#a5864f4fa3852fd9a21825115f3bed2fb">~CSamplesPreprocessor</a>();
<a name="l00024"></a>00024 
<a name="l00025"></a>00025                 <span class="comment">/* embeds data from the stego-framework into the given</span>
<a name="l00026"></a>00026 <span class="comment">                 * memory area; the result is a so called stego-object</span>
<a name="l00027"></a>00027 <span class="comment">                 * @param pStegoObject pointer to the memory area to modify</span>
<a name="l00028"></a>00028 <span class="comment">                 * @param pStegoObjectLength length of the memory area (unit:byte)</span>
<a name="l00029"></a>00029 <span class="comment">                 * @param pLeak (unit: byte)</span>
<a name="l00030"></a>00030 <span class="comment">                 * @return &gt;0 success, 0 = EOF, &lt;0 for error</span>
<a name="l00031"></a>00031 <span class="comment">                 */</span>
<a name="l00032"></a>00032                 <span class="keywordtype">int</span> <a class="code" href="classCSamplesPreprocessor.html#a64c839fe031a789df8655745754c369c">createStegoObject</a>(<span class="keywordtype">void</span>* pStegoObject, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pStegoObjectLength, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pLeak);
<a name="l00033"></a>00033 
<a name="l00034"></a>00034                 <span class="comment">/* extracts data from the stego-framework from the given</span>
<a name="l00035"></a>00035 <span class="comment">                 * memory area</span>
<a name="l00036"></a>00036 <span class="comment">                 * @param pStegoObject: memory area to extract data from</span>
<a name="l00037"></a>00037 <span class="comment">                 * @param pStegoObjectLength: length of the memory area (unit:byte)</span>
<a name="l00038"></a>00038 <span class="comment">                 * @param pLeak (unit: byte)</span>
<a name="l00039"></a>00039 <span class="comment">                 * @return &gt;= 0 skip in bytes</span>
<a name="l00040"></a>00040 <span class="comment">                 *         &lt;0 error</span>
<a name="l00041"></a>00041 <span class="comment">                 */</span>
<a name="l00042"></a>00042                 <span class="keywordtype">int</span> <a class="code" href="classCSamplesPreprocessor.html#a117620eb6734b97b8c3581dfb428a26f">extractFromStegoObject</a>(<span class="keywordtype">void</span>* pStegoObject, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pStegoObjectLength, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pLeak);
<a name="l00043"></a>00043 
<a name="l00044"></a><a class="code" href="classCSamplesPreprocessor.html#ae29b65ae799f56d6baea65cf4e6fddf5">00044</a>                 <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classCSamplesPreprocessor.html#ae29b65ae799f56d6baea65cf4e6fddf5">setExitForced</a>() { <a class="code" href="classCSamplesPreprocessor.html#a96d1e9549a31b9e1b03af52031d8d8b4">mExitForced</a> = <span class="keyword">true</span>; }
<a name="l00045"></a>00045 
<a name="l00060"></a>00060                 <span class="keyword">static</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classCSamplesPreprocessor.html#ab75dd56930756dfc7acd13caf32ea484">convertFromIntToDouble</a>(<span class="keywordtype">void</span>* pSamplesIn,
<a name="l00061"></a>00061                                 <span class="keywordtype">double</span>* pSamplesOut,
<a name="l00062"></a>00062                                 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pSampleLength,
<a name="l00063"></a>00063                                 <a class="code" href="structNAudioFormats_1_1SStreamInfo.html">NAudioFormats::SStreamInfo</a> &amp;pIoStreamInfo,
<a name="l00064"></a>00064                                 <a class="code" href="classICodec.html">ICodec</a>* pCodec);
<a name="l00065"></a>00065 
<a name="l00080"></a>00080                 <span class="keyword">static</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classCSamplesPreprocessor.html#a632695835c5b2aae2399e4b47a6d6bff">convertFromDoubleToInt</a>(<span class="keywordtype">double</span>* pSamplesIn,
<a name="l00081"></a>00081                                 <span class="keywordtype">void</span>* pSamplesOut,
<a name="l00082"></a>00082                                 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pSampleLength,
<a name="l00083"></a>00083                                 <a class="code" href="structNAudioFormats_1_1SStreamInfo.html">NAudioFormats::SStreamInfo</a> &amp;pIoStreamInfo,
<a name="l00084"></a>00084                                 <a class="code" href="classICodec.html">ICodec</a>* pCodec);
<a name="l00085"></a>00085 
<a name="l00086"></a>00086                 <span class="keyword">static</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classCSamplesPreprocessor.html#a19ac7df6cf7eadb4d6bbb6feabaaadb6">getBytePerSample</a>(<a class="code" href="namespaceNAudioFormats.html#a8819e97264e4bbfee5d0552ee4c36c7c">NAudioFormats::ESamplesWidth</a> pSamplesWidth);
<a name="l00087"></a>00087 
<a name="l00088"></a>00088                 <span class="keyword">static</span> <a class="code" href="classICodec.html">ICodec</a>* <a class="code" href="classCSamplesPreprocessor.html#afe5f05d3b77ce6e307df7c9efb2d2415">newCodecPerCodecInfo</a>(<a class="code" href="namespaceNAudioFormats.html#a3bd6168a4f5f18e84873337a65d3062c">NAudioFormats::ECodec</a> pCodecInfo);
<a name="l00089"></a>00089 
<a name="l00090"></a>00090         <span class="keyword">private</span>:
<a name="l00091"></a>00091                 <a class="code" href="classCSamplesPreprocessor.html#aa968e1c0fc57528eaf3494dfb48a221f">CSamplesPreprocessor</a>(<span class="keyword">const</span> <a class="code" href="classCSamplesPreprocessor.html">CSamplesPreprocessor</a>&amp; );
<a name="l00092"></a>00092                 <a class="code" href="classCSamplesPreprocessor.html">CSamplesPreprocessor</a>&amp; <a class="code" href="classCSamplesPreprocessor.html#af41caecb402f1da1a7202e916a43cef2">operator=</a>(<span class="keyword">const</span> <a class="code" href="classCSamplesPreprocessor.html">CSamplesPreprocessor</a>&amp; );
<a name="l00093"></a>00093 
<a name="l00094"></a><a class="code" href="classCSamplesPreprocessor.html#aa334d46f6be47bc2b5dea9fcb2a01d57">00094</a>                 <span class="keyword">static</span> <span class="keyword">const</span> std::string <a class="code" href="classCSamplesPreprocessor.html#aa334d46f6be47bc2b5dea9fcb2a01d57">sIniSection</a>;
<a name="l00095"></a>00095 
<a name="l00096"></a><a class="code" href="classCSamplesPreprocessor.html#a50031355dba25b3304b9fef0ef505567">00096</a>                 <span class="keywordtype">bool</span> <a class="code" href="classCSamplesPreprocessor.html#a50031355dba25b3304b9fef0ef505567">mError</a>;
<a name="l00097"></a><a class="code" href="classCSamplesPreprocessor.html#a42461addd5d99fe1628119a3eaaabae1">00097</a>                 <a class="code" href="properties__reader_8h.html#a67847fd00cb49d80dd45f61722eb9a43">CPropertiesReader</a>* <a class="code" href="classCSamplesPreprocessor.html#a42461addd5d99fe1628119a3eaaabae1">mReader</a>;
<a name="l00098"></a><a class="code" href="classCSamplesPreprocessor.html#a92ed3d0daef5f5d5c206196943590821">00098</a>                 <span class="keywordtype">bool</span> <a class="code" href="classCSamplesPreprocessor.html#a92ed3d0daef5f5d5c206196943590821">mUseExtractThread</a>; <span class="comment">// default: true</span>
<a name="l00099"></a><a class="code" href="classCSamplesPreprocessor.html#aaf29988de65d5f5be7591446c13420f9">00099</a>                 <span class="keywordtype">bool</span> <a class="code" href="classCSamplesPreprocessor.html#aaf29988de65d5f5be7591446c13420f9">mOverwrite</a>;
<a name="l00100"></a><a class="code" href="classCSamplesPreprocessor.html#a26e34bbbb59066cd771182325a5813fc">00100</a>                 <a class="code" href="classCWaveIO.html">CWaveIO</a>* <a class="code" href="classCSamplesPreprocessor.html#a26e34bbbb59066cd771182325a5813fc">mWave</a>;
<a name="l00101"></a><a class="code" href="classCSamplesPreprocessor.html#a658049b929173a96578c0a9b9bc548ce">00101</a>                 <a class="code" href="classICodec.html">ICodec</a>* <a class="code" href="classCSamplesPreprocessor.html#a658049b929173a96578c0a9b9bc548ce">mConvertCodec</a>;
<a name="l00102"></a>00102 
<a name="l00103"></a><a class="code" href="classCSamplesPreprocessor_1_1CExtractThread.html">00103</a>                 <span class="keyword">class </span><a class="code" href="classCSamplesPreprocessor_1_1CExtractThread.html">CExtractThread</a>
<a name="l00104"></a>00104                 {
<a name="l00105"></a>00105                 <span class="keyword">public</span>:
<a name="l00106"></a><a class="code" href="classCSamplesPreprocessor_1_1CExtractThread.html#a7b89e21eb942b2dd30ab17801ebcbcdc">00106</a>                         <a class="code" href="classCByteRingBuffer.html">CByteRingBuffer</a> <a class="code" href="classCSamplesPreprocessor_1_1CExtractThread.html#a7b89e21eb942b2dd30ab17801ebcbcdc">mRingBuffer</a>;
<a name="l00107"></a><a class="code" href="classCSamplesPreprocessor_1_1CExtractThread.html#a572818386ebcd3f47aacf5c95fd052eb">00107</a>                         <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* <a class="code" href="classCSamplesPreprocessor_1_1CExtractThread.html#a572818386ebcd3f47aacf5c95fd052eb">mEngineBuffer</a>;
<a name="l00108"></a><a class="code" href="classCSamplesPreprocessor_1_1CExtractThread.html#a65de1cd54fbbab8c6509df7f9980dc69">00108</a>                         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classCSamplesPreprocessor_1_1CExtractThread.html#a65de1cd54fbbab8c6509df7f9980dc69">mEngineBufferSize</a>;
<a name="l00109"></a><a class="code" href="classCSamplesPreprocessor_1_1CExtractThread.html#a43c99a30fc25bbbdab8852b39de98c7b">00109</a>                         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classCSamplesPreprocessor_1_1CExtractThread.html#a43c99a30fc25bbbdab8852b39de98c7b">mSendInfoCount</a>;
<a name="l00110"></a>00110 
<a name="l00111"></a><a class="code" href="classCSamplesPreprocessor_1_1CExtractThread.html#ad12686cbecb1c473aa2f337c61afba24">00111</a>                         pthread_mutex_t <a class="code" href="classCSamplesPreprocessor_1_1CExtractThread.html#ad12686cbecb1c473aa2f337c61afba24">mSync</a>;
<a name="l00112"></a><a class="code" href="classCSamplesPreprocessor_1_1CExtractThread.html#ab5c01e60c38dd0cb0cf96db53fcfe2c9">00112</a>                         pthread_cond_t <a class="code" href="classCSamplesPreprocessor_1_1CExtractThread.html#ab5c01e60c38dd0cb0cf96db53fcfe2c9">mAvail</a>;
<a name="l00113"></a><a class="code" href="classCSamplesPreprocessor_1_1CExtractThread.html#a148f34f3c142c090257002cd6f1bddfe">00113</a>                         pthread_t <a class="code" href="classCSamplesPreprocessor_1_1CExtractThread.html#a148f34f3c142c090257002cd6f1bddfe">mThreadId</a>;
<a name="l00114"></a>00114 
<a name="l00115"></a><a class="code" href="classCSamplesPreprocessor_1_1CExtractThread.html#a8779d11175cc5e7fae78a56c5f2594ec">00115</a>                         <span class="keyword">enum</span> <a class="code" href="classCSamplesPreprocessor_1_1CExtractThread.html#a8779d11175cc5e7fae78a56c5f2594ec">EExitState</a>
<a name="l00116"></a>00116                         {
<a name="l00117"></a><a class="code" href="classCSamplesPreprocessor_1_1CExtractThread.html#a8779d11175cc5e7fae78a56c5f2594eca48fc966ad32c6ad9f4087444cc2fb5e9">00117</a>                                 <a class="code" href="classCSamplesPreprocessor_1_1CExtractThread.html#a8779d11175cc5e7fae78a56c5f2594eca48fc966ad32c6ad9f4087444cc2fb5e9">EXIT_STATE_NONE</a> = 0,
<a name="l00118"></a><a class="code" href="classCSamplesPreprocessor_1_1CExtractThread.html#a8779d11175cc5e7fae78a56c5f2594eca8af31a55d10bd3ccd4419358e7f119b3">00118</a>                                 <a class="code" href="classCSamplesPreprocessor_1_1CExtractThread.html#a8779d11175cc5e7fae78a56c5f2594eca8af31a55d10bd3ccd4419358e7f119b3">EXIT_STATE_NORMAL</a>,
<a name="l00119"></a><a class="code" href="classCSamplesPreprocessor_1_1CExtractThread.html#a8779d11175cc5e7fae78a56c5f2594eca5144ad80e12270a8cbc40e2bc28cd0b6">00119</a>                                 <a class="code" href="classCSamplesPreprocessor_1_1CExtractThread.html#a8779d11175cc5e7fae78a56c5f2594eca5144ad80e12270a8cbc40e2bc28cd0b6">EXIT_STATE_FORCED</a>
<a name="l00120"></a>00120                         } <a class="code" href="classCSamplesPreprocessor_1_1CExtractThread.html#afdb70d0ef4eb3f2e083999bc6af523c3">mExit</a>;
<a name="l00121"></a>00121 
<a name="l00122"></a><a class="code" href="classCSamplesPreprocessor_1_1CExtractThread.html#ac0fe23d53973e17ac1c5c373447c1da1">00122</a>                         <a class="code" href="classCSamplesPreprocessor_1_1CExtractThread.html#ac0fe23d53973e17ac1c5c373447c1da1">CExtractThread</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pRingBufferSize, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pEngineBufferSize) :
<a name="l00123"></a>00123                                         <a class="code" href="classCSamplesPreprocessor_1_1CExtractThread.html#a7b89e21eb942b2dd30ab17801ebcbcdc">mRingBuffer</a>(pRingBufferSize),
<a name="l00124"></a>00124                                         <a class="code" href="classCSamplesPreprocessor_1_1CExtractThread.html#a572818386ebcd3f47aacf5c95fd052eb">mEngineBuffer</a>(NULL),
<a name="l00125"></a>00125                                         <a class="code" href="classCSamplesPreprocessor_1_1CExtractThread.html#a65de1cd54fbbab8c6509df7f9980dc69">mEngineBufferSize</a>(pEngineBufferSize),
<a name="l00126"></a>00126                                         <a class="code" href="classCSamplesPreprocessor_1_1CExtractThread.html#a43c99a30fc25bbbdab8852b39de98c7b">mSendInfoCount</a>(<a class="code" href="samples__preprocessor_8h.html#a2b547b15963e338fa6757536a1906b39">MAX_SEND_INFO_COUNT</a>),
<a name="l00127"></a>00127                                         <a class="code" href="classCSamplesPreprocessor_1_1CExtractThread.html#afdb70d0ef4eb3f2e083999bc6af523c3">mExit</a>(<a class="code" href="classCSamplesPreprocessor_1_1CExtractThread.html#a8779d11175cc5e7fae78a56c5f2594eca48fc966ad32c6ad9f4087444cc2fb5e9">EXIT_STATE_NONE</a>)
<a name="l00128"></a>00128                         {
<a name="l00129"></a>00129                                 <a class="code" href="classCSamplesPreprocessor_1_1CExtractThread.html#a572818386ebcd3f47aacf5c95fd052eb">mEngineBuffer</a> = <span class="keyword">new</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> [<a class="code" href="classCSamplesPreprocessor_1_1CExtractThread.html#a65de1cd54fbbab8c6509df7f9980dc69">mEngineBufferSize</a>];
<a name="l00130"></a>00130                                 pthread_mutex_init(&amp;<a class="code" href="classCSamplesPreprocessor_1_1CExtractThread.html#ad12686cbecb1c473aa2f337c61afba24">mSync</a>, NULL);
<a name="l00131"></a>00131                                 pthread_cond_init(&amp;<a class="code" href="classCSamplesPreprocessor_1_1CExtractThread.html#ab5c01e60c38dd0cb0cf96db53fcfe2c9">mAvail</a>, NULL);
<a name="l00132"></a>00132                         }
<a name="l00133"></a>00133 
<a name="l00134"></a><a class="code" href="classCSamplesPreprocessor_1_1CExtractThread.html#a7ec29c0c5619434936c5890f746c7f12">00134</a>                         <span class="keyword">virtual</span> <a class="code" href="classCSamplesPreprocessor_1_1CExtractThread.html#a7ec29c0c5619434936c5890f746c7f12">~CExtractThread</a>()
<a name="l00135"></a>00135                         {
<a name="l00136"></a>00136                                 pthread_cond_destroy(&amp;<a class="code" href="classCSamplesPreprocessor_1_1CExtractThread.html#ab5c01e60c38dd0cb0cf96db53fcfe2c9">mAvail</a>);
<a name="l00137"></a>00137                                 pthread_mutex_destroy(&amp;<a class="code" href="classCSamplesPreprocessor_1_1CExtractThread.html#ad12686cbecb1c473aa2f337c61afba24">mSync</a>);
<a name="l00138"></a>00138                                 <span class="keyword">delete</span> [] <a class="code" href="classCSamplesPreprocessor_1_1CExtractThread.html#a572818386ebcd3f47aacf5c95fd052eb">mEngineBuffer</a>;
<a name="l00139"></a>00139                         }
<a name="l00140"></a>00140                 } <a class="code" href="classCSamplesPreprocessor.html#a17d2a99a8cc1e6578d4c78655bc88d59">mExtractThread</a>;
<a name="l00141"></a>00141 
<a name="l00142"></a><a class="code" href="classCSamplesPreprocessor.html#acb1bf34f3e6c3e1ace376dc6b4a18550">00142</a>                 <a class="code" href="classCStegCallHandle.html" title="simple handle class that carries all the various engines and helper classes">CStegCallHandle</a>* <a class="code" href="classCSamplesPreprocessor.html#acb1bf34f3e6c3e1ace376dc6b4a18550">mCallHandle</a>;
<a name="l00143"></a><a class="code" href="classCSamplesPreprocessor.html#a5180a6f360a8050989c57fcdfe48d652">00143</a>                 <a class="code" href="classIEmbeddingEngine.html" title="Embedding engine base class.">IEmbeddingEngine</a>* <a class="code" href="classCSamplesPreprocessor.html#a5180a6f360a8050989c57fcdfe48d652">mEmbeddingEngine</a>;
<a name="l00144"></a><a class="code" href="classCSamplesPreprocessor.html#a9bcd02202290c1aff7b5c5dcaf660c53">00144</a>                 <a class="code" href="structNAudioFormats_1_1SStreamInfo.html">NAudioFormats::SStreamInfo</a> <a class="code" href="classCSamplesPreprocessor.html#a9bcd02202290c1aff7b5c5dcaf660c53">mIoStreamInfo</a>;
<a name="l00145"></a><a class="code" href="classCSamplesPreprocessor.html#ab3f6e44af2686c0ddeaee53ae255510d">00145</a>                 <a class="code" href="classICodec.html">ICodec</a>* <a class="code" href="classCSamplesPreprocessor.html#ab3f6e44af2686c0ddeaee53ae255510d">mCodec</a>;
<a name="l00146"></a><a class="code" href="classCSamplesPreprocessor.html#a6d7682e0a3d0cfd0e7875f3df621c966">00146</a>                 <span class="keywordtype">double</span>* <a class="code" href="classCSamplesPreprocessor.html#a6d7682e0a3d0cfd0e7875f3df621c966">mDoubleSampleBuf</a>;
<a name="l00147"></a><a class="code" href="classCSamplesPreprocessor.html#a11440584f2ea8efdde9808347ee5a5a7">00147</a>                 <span class="keywordtype">int</span> <a class="code" href="classCSamplesPreprocessor.html#a11440584f2ea8efdde9808347ee5a5a7">mDoubleSampleCount</a>;
<a name="l00148"></a><a class="code" href="classCSamplesPreprocessor.html#a9525fb3f3b0b61dc208d55a59af26632">00148</a>                 <span class="keywordtype">double</span>* <a class="code" href="classCSamplesPreprocessor.html#a9525fb3f3b0b61dc208d55a59af26632">mConvertDoubleSampleBuf</a>;
<a name="l00149"></a><a class="code" href="classCSamplesPreprocessor.html#ae02af166932cb4c673d84c02fac7be85">00149</a>                 <span class="keywordtype">int</span> <a class="code" href="classCSamplesPreprocessor.html#ae02af166932cb4c673d84c02fac7be85">mConvertDoubleSampleCount</a>;
<a name="l00150"></a><a class="code" href="classCSamplesPreprocessor.html#a4451a91becdf280f7724a0eb10b6e784">00150</a>                 int16_t* <a class="code" href="classCSamplesPreprocessor.html#a4451a91becdf280f7724a0eb10b6e784">m16BitSampleBuf</a>;
<a name="l00151"></a><a class="code" href="classCSamplesPreprocessor.html#a522ace0c13718185fa864db89c4cbab7">00151</a>                 <span class="keywordtype">int</span> <a class="code" href="classCSamplesPreprocessor.html#a522ace0c13718185fa864db89c4cbab7">m16BitSampleCount</a>;
<a name="l00152"></a><a class="code" href="classCSamplesPreprocessor.html#a0560ef21fe217ca7f2351a5f010fbcd3">00152</a>                 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classCSamplesPreprocessor.html#a0560ef21fe217ca7f2351a5f010fbcd3">mBytePerSample</a>;
<a name="l00153"></a><a class="code" href="classCSamplesPreprocessor.html#a96d1e9549a31b9e1b03af52031d8d8b4">00153</a>                 <span class="keywordtype">bool</span> <a class="code" href="classCSamplesPreprocessor.html#a96d1e9549a31b9e1b03af52031d8d8b4">mExitForced</a>;
<a name="l00154"></a>00154 
<a name="l00155"></a><a class="code" href="classCSamplesPreprocessor.html#a8502b6fbb720216cb59e71395ca77792">00155</a>                 <span class="keywordtype">double</span> <a class="code" href="classCSamplesPreprocessor.html#a8502b6fbb720216cb59e71395ca77792">mAmpEmbed</a>;
<a name="l00156"></a><a class="code" href="classCSamplesPreprocessor.html#abd1ce148e1fef0f652b62634c18bff15">00156</a>                 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classCSamplesPreprocessor.html#abd1ce148e1fef0f652b62634c18bff15">mAmpEmbedCount</a>;
<a name="l00157"></a><a class="code" href="classCSamplesPreprocessor.html#a73abd0e3b6d953622d9b805021b7485c">00157</a>                 <span class="keywordtype">double</span> <a class="code" href="classCSamplesPreprocessor.html#a73abd0e3b6d953622d9b805021b7485c">mAmpExtract</a>;
<a name="l00158"></a><a class="code" href="classCSamplesPreprocessor.html#a8a57edc69248c4bb824f37763347c39f">00158</a>                 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classCSamplesPreprocessor.html#a8a57edc69248c4bb824f37763347c39f">mAmpExtractCount</a>;
<a name="l00159"></a>00159 
<a name="l00171"></a>00171                 <span class="keywordtype">int</span> <a class="code" href="classCSamplesPreprocessor.html#a104e1437c6cffcf0f32e4640ebc03ef7">embedOrExtract</a>(<span class="keywordtype">void</span>* pSamples, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pSampleLength, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pLeak, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pInBuffer, <span class="keywordtype">bool</span> pEmbedding);
<a name="l00172"></a>00172 
<a name="l00177"></a>00177                 int16_t* <a class="code" href="classCSamplesPreprocessor.html#a5a92c206665f61fe36ea33fb3b023f02">get16BitSampleBuffer</a>(<span class="keywordtype">int</span> pSampleLength);
<a name="l00178"></a>00178 
<a name="l00183"></a>00183                 <span class="keywordtype">double</span>* <a class="code" href="classCSamplesPreprocessor.html#a01f335c40758328c657d63b6559e043a">getDoubleBuffer</a>(<span class="keywordtype">int</span> pSampleLength);
<a name="l00184"></a>00184 
<a name="l00189"></a>00189                 <span class="keywordtype">double</span>* <a class="code" href="classCSamplesPreprocessor.html#aee31b221da5d9d314d051dc5b6d11be5">getConvertDoubleBuffer</a>(<span class="keywordtype">int</span> pSampleLength);
<a name="l00190"></a>00190 
<a name="l00191"></a>00191                 <span class="keyword">static</span> int16_t <a class="code" href="classCSamplesPreprocessor.html#af83b9833c911fdb6d7c3f142dfb5d6df">switchEndian</a>(int16_t pValue);
<a name="l00192"></a>00192                 <span class="keyword">static</span> uint16_t <a class="code" href="classCSamplesPreprocessor.html#af83b9833c911fdb6d7c3f142dfb5d6df">switchEndian</a>(uint16_t pValue);
<a name="l00193"></a>00193                 <span class="keywordtype">bool</span> <a class="code" href="classCSamplesPreprocessor.html#a4c8ec75cdd3d88a052000d4ed8c2916a">switchEndianFrom16BitBuffer</a>(int16_t *pOutSamples,
<a name="l00194"></a>00194                                 int16_t *pInSamples,
<a name="l00195"></a>00195                                 <span class="keywordtype">int</span> pSampleLength);
<a name="l00196"></a>00196                 <span class="keywordtype">bool</span> <a class="code" href="classCSamplesPreprocessor.html#a4c8ec75cdd3d88a052000d4ed8c2916a">switchEndianFrom16BitBuffer</a>(uint16_t *pOutSamples,
<a name="l00197"></a>00197                                 uint16_t *pInSamples,
<a name="l00198"></a>00198                                 <span class="keywordtype">int</span> pSampleLength);
<a name="l00199"></a>00199 
<a name="l00200"></a>00200                 <span class="keywordtype">void</span> <a class="code" href="classCSamplesPreprocessor.html#af96a076dd7a0db805db2d1fd86c96fbe">addSamplesAmps</a>(<span class="keywordtype">double</span>&amp; pAmp, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>&amp; pAmpCount, <span class="keywordtype">double</span>* pSamples, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pSampleCount, <span class="keywordtype">bool</span> pEmbedding);
<a name="l00201"></a>00201 
<a name="l00202"></a>00202                 <span class="keyword">static</span> <span class="keywordtype">void</span>* <a class="code" href="classCSamplesPreprocessor.html#a727bbfd1ce8befb2e268c9beccd73ab3">extractThread</a>(<span class="keywordtype">void</span>* pThis);
<a name="l00203"></a>00203                 <span class="keywordtype">void</span>* <a class="code" href="classCSamplesPreprocessor.html#a727bbfd1ce8befb2e268c9beccd73ab3">extractThread</a>();
<a name="l00204"></a>00204 };
<a name="l00205"></a>00205 
<a name="l00206"></a>00206 <span class="preprocessor">#endif </span><span class="comment">/* __SAMPLES_PREPROCESSOR_H__ */</span>
<a name="l00207"></a>00207 
</pre></div></div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Wed Jan 25 2012 22:00:39 for Whisper by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
